package top.tresman.cxxcommon.entity.request;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@NotNull(message = "登录参数不能为空")
public class UpdPwdRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 5922337333065762910L;

    @NotNull(message = "原密码不能为空")
    @Size(min = 32, max = 32, message = "密码必须使用md5加密传输")
    private String oldPassword;

    @NotNull(message = "新密码不能为空")
    @Size(min = 32, max = 32, message = "密码必须使用md5加密传输")
    private String newPassword;
}
